import {FormRuleUtil} from "@/utils";


export const ACCOUNT_WXPAY_EDIT = {
    BODY: {
        appId: '',
        appType: null,
        mchId: '',
        mchName: '',
        privateCert: '',
        privateKey: '',
        v3Key: '',
        description: '',

    },
    RULES: {
        mchId: FormRuleUtil.strRule('商户ID', true, 30, 'code'),
        mchName: FormRuleUtil.strRule('商户名称', true, 30),
        privateCert: FormRuleUtil.strRule('证书内容', true),
        privateKey: FormRuleUtil.strRule('证书秘钥', true),
        v3Key: FormRuleUtil.strRule('V3KEY', true),
        appId: FormRuleUtil.strRule('appId', true, 40),
        appType: FormRuleUtil.strRule('应用类型', true, 40),
        description: FormRuleUtil.strRule('备注信息', false, 1000),

    }
}

export const ACCOUNT_ALIPAY_EDIT = {
    BODY: {
        appId: '',
        appType: '',
        description: '',
        privateKey: '',
        publicKey: '',
        sandbox: false,
        signType: 'RSA2',

    },
    RULES: {
        privateKey: FormRuleUtil.strRule('应用私钥', true),
        publicKey: FormRuleUtil.strRule('应用公钥', true),
        appId: FormRuleUtil.strRule('应用ID', true, 40),
        appType: FormRuleUtil.strRule('应用类型', true, 40),
        description: FormRuleUtil.strRule('备注信息', false, 1000),
        sandbox: FormRuleUtil.boolRule('网关类型', true),
        signType: FormRuleUtil.strRule('签名类型', true),

    }
}



